package day03;
//if结构的练习
public class IfDemo {
    public static void main(String[] args) {
        //1. price满500打八折
        double price = 500.0;//消费金额 (代数:600.0,300.0)
        if (price>=500){
            price*=0.8;
        }
        System.out.println("最终结算金额:"+price);

        //2. 判断成绩是否合法,若合法则输出成绩
        double score=5555.0;//成绩 (代数:5555.0,100.0)
        if (score<0||score>100){
            System.out.println("成绩不合法"+score);
        }else {
            System.out.println("合法成绩哦...");
        }
        System.out.println("成绩:"+score);

    }
}
